import {get, post} from "../../utils/req";
import {alert} from "../../components/common/alert";

export async function getConfig() {
    try {
        return await get('/private/ls_config/get');
    } catch (e) {
        alert(`获取编排配置失败：${e}`, 'error');
        return null;
    }
}

export async function save(data) {
    try {
        return await post('/private/ls_config/save',data);
    } catch (e) {
        alert(`保存编排配置失败：${e}`, 'error');
        return 0;
    }
}
